//
//  WBTempViewController.swift
//  weibo
//
//  Created by yanghong on 15/12/5.
//  Copyright © 2015年 杨鸿. All rights reserved.
//

import UIKit

class WBTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
  
     title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
     view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "push")
    }
    @objc private func push(){
        let vc = WBTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
 
   

}
